package fixtures;

import sgi.details_new.ComplaintDetails;
import fit.ActionFixture;

public class ComplaintTest extends ActionFixture {

	ComplaintDetails complaint = new ComplaintDetails();
	
	public void type (int type)
	{
		if(type >=0 && type <= 3)
			complaint.setType(type);
		else 
			complaint.setType(-1);
	}
	
	public void title (String title)
	{
		complaint.setTitle(title);
	}
	
	public void description (String description)
	{
		complaint.setDescription(description);
	}
	
	public boolean fileComplaint() 
	{
		if((complaint.getType() != -1) && (!complaint.getTitle().equals("")) && (!complaint.getDescription().equals("")))
			return true;
		
		return false;
		
	}
	
	
}
